const responseWrite = (res, data, status = 200) => {
    res.set({
        'content-type': 'application/json;charset=utf-8'
    })
    res.render('response', {
        status: status,
        data: JSON.stringify(data)
    });
}

module.exports = {
    responseWrite
}